<?php
/**
 * @copyright	Copyright (C) 2008 Bideew. All rights reserved.
 * @license		GNU/GPL
* This file is part of Bideew.

* Bideew is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* any later version.

* Bideew is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.

* You should have received a copy of the GNU General Public License
* along with Bideew; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
 
?>


<script  type="text/javascript">
		function tinyMceModeOuverture(MODE)
		{
			if (MODE==0)
			{  
				tinyMCE.init({
				// Tiny MCE avec une interface basique
				mode : "textareas",
				theme : "simple"

				});		 
			}
			else if(MODE==1)
			{
				tinyMCE.init({
						// General options
						mode : "textareas",
						theme : "advanced",
						plugins : "safari,pagebreak,style,layer,table,save,advhr,ibrowser,advimage,advlink,emotions,inlinepopups,preview,media,searchreplace,print,contextmenu,paste,directionality,noneditable,visualchars,nonbreaking,xhtmlxtras,template",

						// Theme options
						theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,pasteword,|,bullist,numlist,blockquote",
						theme_advanced_buttons2 : "link,unlink,anchor,image,ibrowser,charmap,cleanup,help,code,|,forecolor,backcolor,|,sub,sup",
						theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid",
						theme_advanced_toolbar_location : "top",
						theme_advanced_toolbar_align : "left",
						theme_advanced_statusbar_location : "bottom",
						theme_advanced_resizing : false,

						// Drop lists for link/image/media/template dialogs
						template_external_list_url : "lists/template_list.js",
						external_link_list_url : "lists/link_list.js",
						external_image_list_url : "lists/image_list.js",
						media_external_list_url : "lists/media_list.js",

						// Replace values for the template plugin
						template_replace_values : {
							username : "Some User",
							staffid : "991234"
						}
	});	
			}
		}
</script>
